package com.yunji.hushuang.adapter;

/**
 * @author hushuang
 * @since 2019/10/31
 */
public class IPhoneAdapter implements IFormatAndroid {

    private IPhone iPhone;

    public IPhoneAdapter(IPhone iPhone) {
        this.iPhone = iPhone;
    }

    @Override
    public void connectByMicroUsb() {
        iPhone.connectByLighting();
    }

    @Override
    public void recharge() {
        System.out.println("IPhone adapter is working...");
        iPhone.recharge();
    }
}
